<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMoviesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('movies', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->text('name_en');
            $table->text('name_zh');
            $table->text('playwright');
            $table->timestamp('publish_at');
            $table->text('grade');
            $table->text('length');
            $table->text('official_url');
            $table->longText('detail');

        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('movies');

    }
}
